<?php
/**
 * 文字主题
 *
 * @package 7N2
 * @author 小野
 * @version 1.0
 * @link https://lb5.net
 */
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main>
    <?php if ($this->have()): ?>
        <?php while ($this->next()): ?>
            <div class="post-item">
                <a href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
                <time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time>
            </div>
        <?php endwhile; ?>

        <?php if ( $this->is('archive') || $this->is('index') ) { ?>
            <div class="post-pagination">
                <?php $this->pageNav('&nbsp;←&nbsp;', '&nbsp;→&nbsp;', '5', '…'); ?>
            </div>
        <?php }; ?>
    <?php else : ?>
        <article><em>啥也没有，来干嘛？ ...</em></article>
    <?php endif; ?>
</main>

<?php $this->need('footer.php'); ?>